<template>
  <div id="app">
    <base-from-vue ref="basefrom"></base-from-vue>
    <button @click="getdata">获取数据</button>
    <button @click="resetdata">重置数据</button>
  </div>
</template>
<script >
import BaseFromVue from "../components/02/BaseFrom.vue";
export default {
  name: "app3",
  data() {
    return {};
  },
  props: [],
  components: {
    BaseFromVue,
  },
  created() {},
  mounted() {},
  methods: {
    getdata() {
      
      console.log(this.$refs.basefrom.getFromData());
    },
    resetdata() {
      this.$refs.basefrom.resetData();
    },
  },
};
</script>
<style lang='less' scoped>
</style>
